import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
// @ 表示 src 资源的根目录
import Design from "@/components/Design";
import Market from "@/components/Market";
import Devlopment from "@/components/Devlopment";


Vue.use(Router)

export default new Router({
  // 定义路由规则
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/design',
      name: 'Design',
      component: Design
    },
    {
      path: '/market',
      name: 'Market',
      component: Market
    },
    {
      path: '/devlopment',
      name: 'Devlopment',
      component: Devlopment
    }
  ],
  // mode 修改路由规则，hash是路径带#一般用于调试
  // mode:history 路径不带# 一般用于发布
  mode: 'history'
})
